package com.qztc.news_end_dto.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@TableName("user")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "用户信息")
public class User extends Model<User> implements Serializable {

    @Schema(title = "用户id")
    @TableId
    private int userid;

    @Schema(title = "用户账号")
    @TableField
    private String username;

    @Schema(title = "用户密码")
    @TableField
    private String userpwd;

    @Schema(title = "用户是否可使用，1表示可使用")
    @TableField
    private int isuse;

    @Schema(title = "用户电话号码")
    @TableField
    private String userphone;
}
